package com.jzl.canal_consumer.mycat;


/**
 * @author ZhenWuWang
 */
public class MycatAnnotation
{
    private final static String MYCAT_ANNOTATION_1 = "/*!mycat:schema=";
    private final static String MYCAT_ANNOTATION_2 = "*/";

    public static String appendSchemaAnnotation(String sql)
    {
        return MYCAT_ANNOTATION_1 + SqlContext.getSchemaName() + MYCAT_ANNOTATION_2 + sql;
    }
}
